package com.monkey.model.user;

import com.monkey.core.ErrorCode;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/24.
 */
public class UserWalletData {
    private int code;
    private String msg;
    private float money;
    private String wallet;
    private int time;

    public UserWalletData(int code) {
        this(code, 0.0f, "", 0);
    }

    public UserWalletData(int code, float money, String wallet, int time) {
        this.code = code;
        this.msg = ErrorCode.getMsg(code);
        this.money = money;
        this.wallet = wallet;
        this.time = time;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public float getMoney() {
        return money;
    }

    public String getWallet() {
        return wallet;
    }

    public int getTime() {
        return time;
    }
}
